import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('@/pages/home.vue')
  },
  {
    path: '/three',
    component: () => import('@/pages/threejsEarth.vue')
  },
  {
    path: '/tthree',
    component: () => import('@/pages/threejsEarthTest.vue')
  },
  {
    path: '/test',
    component: () => import('@/pages/test.vue')
  }
  // {
  //   path: '/:pathMatch(.*)*',
  //   redirect: '/404'
  // }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
